<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Admin Template</title>

    <link href="/movie/Movie_version_1.1/movie/Public/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/movie/Movie_version_1.1/movie/Public/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="/movie/Movie_version_1.1/movie/Public/static/admin/css/layout.css" rel="stylesheet">
    <link href="/movie/Movie_version_1.1/movie/Public/static/admin/css/min.css" rel="stylesheet">
    <script src="/movie/Movie_version_1.1/movie/Public/static/jquery/jquery.min.js"></script>

</head>
<body>

<!-- .row必须包含在 .container(固定宽度)或 .container-fluid(100% 宽度)中，以便为其赋予合适的排列(aligment)和内补(padding)-->
<nav class="layout-header">
    <div class="container layout-width">
        <div class="row">
            <div class="col-md-12">

                <div class="pull-left">
                    <a href="" class="logo">
                        <span class="fa fa-desktop"></span> 管理员后台
                    </a>
                </div>

                <div class="top-menu pull-left">
                    <ul>
                        <li>
                            <a href="<?php echo U('Index/index');?>">首页</a>
                        </li>
                        <li>
                            <a class="" href="">影院管理</a>

                            <div class="nav-child-menu">
                                <a href="<?php echo U('Cinema/index');?>">影院列表</a>
                                <a href="<?php echo U('Cinema/create');?>">添加影院</a>
                            </div>
                        </li>
                        <li><a class="" href="">电影管理</a>

                            <div class="nav-child-menu">
                                <a href="<?php echo U('Movie/index');?>">电影列表</a>
                                <a href="<?php echo U('Movie/create');?>">添加电影</a>
                            </div>
                        </li>
                        <li><a class="" href="">广告管理</a>

                            <div class="nav-child-menu">
                                <a href="<?php echo U('Addver/index');?>">广告列表</a>
                                <a href="<?php echo U('Addver/create');?>">添加广告</a>
                            </div>
                        </li>
                    </ul>
                </div>

                <div class="pull-right">
                <span class="account-info">
                    <span>欢迎:<?php echo \Admin\Model\Admin::user()['username']; ?></span>
                    <a class="text-muted">
                        <span class="glyphicon glyphicon-user"><span
                                class="icon-circle my-red-dot"></span></span>
                    </a>
                    <a class="login-out" href="<?php echo U('Default/loginout');?>">退出</a>
                </span>

                </div>

            </div>
        </div>
    </div>
</nav>

<section class="container layout-main layout-width">
    <div class="row">
        <div class="col-md-12 display-table">

            <!--左菜单区域-->

            <!-- 左菜单区域结束-->

            <!--右内容区域-->
            
    <!--右内容区域-->
    <div class="layout-content">

        <div class="page-title">电影管理</div>

        <div class="content-top">
            <ul class="top-nav">
                <li class="active"><span>电影列表</span></li>
            </ul>
            <div class="clearfix"></div>
        </div>

        <!--content-main start-->
        <div class="container-fluid content-main">
            <div class="row">
                <div class="col-md-12">
                    <?php if(!empty($message)): ?><div class="ui-tips bg-info">
                            <span class="icon glyphicon glyphicon-info-sign"></span> <span><?php echo ($message); ?></span>
                    </div><?php endif; ?>
                    <form class="form-horizontal" action="<?php echo U('Movie/add');?>" method="post" enctype="multipart/form-data">

                        <div class="form-group">
                            <label class="col-sm-2 control-label">电影名</label>
                            <div class="col-sm-8">
                                <input type="text" name="name" class="form-control">
                                <span class="help-block"></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">演员列表</label>
                            <div class="col-sm-8">
                                <input type="text" name="actore" class="form-control">
                                <span class="help-block">请按照 <b>张山/李四/王五</b> 输入</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">电影时长</label>
                            <div class="col-sm-8">
                                <select name="long" id="form-control" class="form-control">
                                    <option value="60">60分钟</option>
                                    <option value="120">120分钟</option>
                                </select>
                                <span class="help-block"></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">上映时间</label>
                            <div class="col-sm-8">
                                <input type="text" name="release_at" class="form-control">
                                <span class="help-block">请按照 <b>2008</b> 的格式输入</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">电影图片</label>
                            <div class="col-sm-8">
                                <input type="file" name="pic">
                                <span class="help-block">只能上传 <b>"jpg","png","jpeg"</b> 格式的图片</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label language">语言</label>
                            <div class="col-sm-8">
                                <select name="language" class="form-control">
                                <?php if(is_array($language)): foreach($language as $ke=>$va): ?><option value="<?php echo ($ke); ?>"><?php echo ($va); ?></option><?php endforeach; endif; ?>
                                </select>
                                <span class="help-block"></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label label_s">标签</label>
                            <div class="col-sm-8">
                                <?php if(is_array($tags)): foreach($tags as $kk=>$vall): ?><label for="comedy<?php echo ($kk); ?>"><input type="checkbox" id="comedy<?php echo ($kk); ?>"name="tags[]" value="<?php echo ($kk); ?>" > <?php echo ($vall); ?> </label><?php endforeach; endif; ?>
                                 <span class="help-block"></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">简介</label>
                            <div class="col-sm-8">
                                <textarea name="summary"   class="Introduction form-control"></textarea>
                                <span class="help-block">字符不要超过 <b style="cole">200</b> 字</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">描述</label>
                            <div class="col-sm-8">
                                <textarea name="description" class="Introduction form-control"></textarea>
                                <span class="help-block">字符不要超过 <b style="cole">200</b> 字</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">状态</label>

                            <div class="col-sm-8">
                                <select name="status" class="form-control">
                                    <!--状态在 create 方法里面-->
                                    <?php if(is_array($status)): foreach($status as $k=>$val): ?><option value="<?php echo ($k); ?>"><?php echo ($val); ?></option><?php endforeach; endif; ?>
                                </select>
                                <span class="help-block"></span>
                            </div>
                        </div>
                      <!--  <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-8">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox"> Remember me
                                    </label>
                                </div>
                            </div>-->
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-8">
                                <button type="submit" class="btn btn-default">保存</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <!--右内容区域结束-->
    <script>

    </script>
        <div class="clearfix"></div>
    </div>
    </div>
    </section>

            <!--右内容区域结束-->

            <div class="clearfix"></div>
        </div>
    </div>
</section>

<footer class="layout-footer">
    <div style="margin-top:30px" class="container layout-width">
        <div class="row">
            <div class="col-md-12">
                <ul class="links">
                    <li><a href="" target="_blank">关于我们</a></li>
                    <li><a href="" target="_blank">服务协议</a></li>
                    <li><a href="" target="_blank">运营规范</a></li>
                    <li><a href="" target="_blank">客服中心</a></li>
                    <li><a href="" target="_blank">在线客服</a></li>
                    <li><p class="copyright">Copyright.All Rights Reserved.</p></li>
                </ul>
            </div>
        </div>
    </div>
</footer>

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="/movie/Movie_version_1.1/movie/Public/static/ie8/html5shiv.min.js"></script>
<script src="/movie/Movie_version_1.1/movie/Public/static/ie8/respond.min.js"></script>
<![endif]-->

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/movie/Movie_version_1.1/movie/Public/static/bootstrap/js/bootstrap.min.js"></script>

</body>
</html>